package com.icim.entity;

import com.icim.csot.importer.xmlentity.CsotMtrlInXmlEntity;

public class Ret_cus_prd_in {
    private String logId;
    private String rcvTimestamp;
    private String opeFabId;
    
    private String boxPhyId;
    private String mtrlBoxId;
    private String cusGroupId;
    private String mtrlPalletNo;
    private String mtrlPalletId;
    private String mtrlProdIdFk;
    private Double blockSize;
    private String partNo;
    private Integer xAxisCntFk;
    private Integer yAxisCntFk;
    private String prdTyp;
    private String prdCate;
    private String slipNo;
    private Integer boxCapacity;
    private Integer blockQty;
    private String actFlg;
    private Integer mtrlPalletCapacity;
    
    public String getLogId() {
        return logId;
    }
    public void setLogId(String logId) {
        this.logId = logId;
    }
    public String getRcvTimestamp() {
        return rcvTimestamp;
    }
    public void setRcvTimestamp(String rcvTimestamp) {
        this.rcvTimestamp = rcvTimestamp;
    }
    public String getOpeFabId() {
        return opeFabId;
    }
    public void setOpeFabId(String opeFabId) {
        this.opeFabId = opeFabId;
    }
    public String getBoxPhyId() {
        return boxPhyId;
    }
    public void setBoxPhyId(String boxPhyId) {
        this.boxPhyId = boxPhyId;
    }
    public String getMtrlBoxId() {
        return mtrlBoxId;
    }
    public void setMtrlBoxId(String mtrlBoxId) {
        this.mtrlBoxId = mtrlBoxId;
    }
    public String getCusGroupId() {
        return cusGroupId;
    }
    public void setCusGroupId(String cusGroupId) {
        this.cusGroupId = cusGroupId;
    }
    public String getMtrlPalletNo() {
        return mtrlPalletNo;
    }
    public void setMtrlPalletNo(String mtrlPalletNo) {
        this.mtrlPalletNo = mtrlPalletNo;
    }
    public String getMtrlPalletId() {
        return mtrlPalletId;
    }
    public void setMtrlPalletId(String mtrlPalletId) {
        this.mtrlPalletId = mtrlPalletId;
    }
    public String getMtrlProdIdFk() {
        return mtrlProdIdFk;
    }
    public void setMtrlProdIdFk(String mtrlProdIdFk) {
        this.mtrlProdIdFk = mtrlProdIdFk;
    }
    public Double getBlockSize() {
        return blockSize;
    }
    public void setBlockSize(Double blockSize) {
        this.blockSize = blockSize;
    }
    public Integer getxAxisCntFk() {
        return xAxisCntFk;
    }
    public void setxAxisCntFk(Integer xAxisCntFk) {
        this.xAxisCntFk = xAxisCntFk;
    }
    public Integer getyAxisCntFk() {
        return yAxisCntFk;
    }
    public void setyAxisCntFk(Integer yAxisCntFk) {
        this.yAxisCntFk = yAxisCntFk;
    }
    public String getPrdTyp() {
        return prdTyp;
    }
    public void setPrdTyp(String prdTyp) {
        this.prdTyp = prdTyp;
    }
    public String getPrdCate() {
        return prdCate;
    }
    public void setPrdCate(String prdCate) {
        this.prdCate = prdCate;
    }
    public String getSlipNo() {
        return slipNo;
    }
    public void setSlipNo(String slipNo) {
        this.slipNo = slipNo;
    }
    public String getPartNo() {
        return partNo;
    }
    public void setPartNo(String partNo) {
        this.partNo = partNo;
    }
   
    public Integer getBoxCapacity() {
        return boxCapacity;
    }
    public void setBoxCapacity(Integer boxCapacity) {
        this.boxCapacity = boxCapacity;
    }
    public Integer getBlockQty() {
        return blockQty;
    }
    public void setBlockQty(Integer blockQty) {
        this.blockQty = blockQty;
    }
    public String getActFlg() {
		return actFlg;
	}
	public void setActFlg(String actFlg) {
		this.actFlg = actFlg;
	}
	
	public Integer getMtrlPalletCapacity() {
        return mtrlPalletCapacity;
    }
    public void setMtrlPalletCapacity(Integer mtrlPalletCapacity) {
        this.mtrlPalletCapacity = mtrlPalletCapacity;
    }
    public void csotMtrlInXmlEntity2RetCusPrdIn(CsotMtrlInXmlEntity xmlEntity,int blockQty){
        this.setLogId(xmlEntity.getLOG_ID());
        this.setRcvTimestamp(xmlEntity.getLM_TIME());
        this.setOpeFabId(xmlEntity.getOS_FAB_CODE());
        this.setBoxPhyId(xmlEntity.getCARRIER_ID());
        this.setBoxCapacity(xmlEntity.getBOXCAPACITY());
        this.setMtrlBoxId(xmlEntity.getSHIPPING_BOX_NO());
        this.setCusGroupId(xmlEntity.getOWNER_ID());
        this.setMtrlPalletNo(xmlEntity.getSHIPPING_PALLET_NO());
        this.setMtrlPalletId(xmlEntity.getPALLET_ID());
        this.setMtrlProdIdFk(xmlEntity.getMODEL_NO());
        this.setBlockSize(xmlEntity.getBLOCK_SIZE());
        this.setPartNo(xmlEntity.getPART_NO());
        this.setxAxisCntFk(xmlEntity.getX_PRODUCT_LAYOUT());//TODO
        this.setyAxisCntFk(xmlEntity.getY_PRODUCT_LAYOUT());//TODO
        this.setPrdTyp(xmlEntity.getPRODUCT_TYPE());
        this.setPrdCate(xmlEntity.getLOT_TYPE());
        this.setSlipNo(xmlEntity.getSLIPNO());
        this.setBlockQty(blockQty);
        this.setActFlg("N");
        this.setMtrlPalletCapacity(xmlEntity.getPALLETCAPACITY());
    }
}
